#content {
  padding: 16px;
  overflow-y: auto;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
border: 1.5px dashed #B6E2FE;
background: white;
  border-radius: 30px;
}

#content::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}


/* container holding the chatbox elements*/
#chat-container-main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap; 
    justify-content: flex-start;
    align-items: stretch;
    width: 160px;
    background: #fadceb url('https://files.catbox.moe/7bhrh2.jpg');
    border: 1px solid #77c4fc;
    border-radius: 30px;
    padding: 16px;  
}

#chat-title {
    margin-top: -20px;
    color: #f99ecc;
    text-align: center;
    }
    
#chat-container {
    width: 140px;
    height: 150px; 
    border: 1px solid #B6E2FE;
    border-radius: 20px;
    padding: 10px;
    overflow-y: auto;
    background-image: url('https://files.catbox.moe/10haj1.jpeg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    display: block;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

#chat-container::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/*whole username box */
#username-container {
    width: 162px;
    height: min-content;
    padding: 10px;
    background-image: url('https://files.catbox.moe/vj9s6k.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 20px;
    border: 1.5px dashed #F1C4F3;
    margin-top: 10px;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
	visibility: hidden;
position: absolute;
}
/* inner wrapper*/
#username-container > div {
    display: flex;
    gap: 22px;
}

#username-container .input-wrapper {
    padding: 2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    align-content: center;
    justify-content: space-evenly;
    width: 100%;
    overflow: visible;
}


#username-input-section {
  display:flex;
}

#welcome-message {
    display: none; 
    flex-direction: column;
    align-items: center;
    gap: 8px;
}


#username-input-section {
    display: flex;
}
#welcome-message {
    display: none;
}


#username-container.show-welcome #username-input-section {
    display: none;
}
#username-container.show-welcome #welcome-message {
    display: flex;
}

.welcome-text {
    display: flex;
    flex-direction: column;
    align-items: center;

    color: #f99ecc;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: -20px;
}

.username-display {
    font-size: 13px;
    margin-top: 2px;
    margin-bottom: 12px;
   }

.welcome-image {
    margin-top: -18px;
}

.message-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.timestamp {
    order: -1;
    opacity: 1;
    font-style: italic;
    font-size: .6em;
    margin-left: auto;
    width: 100%;
    text-align: right;
    margin-bottom: -4px;
}

.username {
    width: 100%;
}


#username-input {
    width: 100px;
    border: 1px solid #64c1f1;
    border-radius: 8px;

    font-size: 11px;
    color: #64c1f1;
    background: #d4f3fb;
    box-sizing: border-box;
    outline: none;
}

#username-input::placeholder {
    color: #64c1f1;
}

#website-input {
    width: 100px;
    border: 1px solid #64c1f1;
    border-radius: 8px;

    font-size: 11px;
    color: #64c1f1;
    background: #d4f3fb;
    box-sizing: border-box;
    outline: none;
}

#website-input::placeholder {
    color: #64c1f1;
}

#button-container {
    margin-top: 14px;
    margin-left: -16px;
}

#set-username-btn {
    width: auto;
    background-color: #f99ecc;
    color: white;
    border: none;
    border-radius: 10px;

    font-size: 12px;
    flex-shrink: 0;
}
#set-username-btn:hover {
    background: #ffb3d9;
}

.message-text strong {
  font-weight: 500;
}

.message-text {
    white-space: pre-wrap; 
    overflow-wrap: break-word;
}

.message-text a {
  color: #8aaf46; 
  text-decoration: none;
  word-break: break-all; 
}

.message-text a:hover {
  color: #93d4f5;
}

.message .username,
.message .timestamp {

}

.message .message-text strong {
    color: #e67aa6;
    font-weight: 500;
}

.message .username a {
    color: #f99ecc;
    text-decoration: none;
}

.message .username a:hover {
    color: #e67aa6;
    text-decoration: none;
}

#chat-controls {
    display: flex;
    align-items: center; 
    gap: 10px; 
    margin-top: 10px;
}

.button-group {
    display: flex;
    flex-direction: column; 
    gap: 4px; 
    
}

#chat-input {
    width: 95px;
    height: 40px;
    overflow-y: auto;
    border-width: 7px; 
    border-style: solid; 
    border-image: url("https://i.imgur.com/ROjUrNz.gif") 6 fill round;
    padding: 2px;
    resize: none;
    font-size: 12px;
    color: #f99ecc;
    outline: none;
    white-space: pre-wrap;
    overflow-wrap: break-word; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

#chat-input::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}
#chat-input::placeholder {
    color: #f99ecc;
    font-size: 12px;
}

#load-older-button {
position: absolute;
    display: block;
    margin-left: 20px;
    margin-bottom: 6px;
    width: 100px;                
    padding: none;     
    background-color: #e0f3fc; 
    color: #a2daf7;  
    border-radius: 10px;
    border-width:1px;
    border-color: #a2daf7;
    border-style:dashed;
    font-size: 11px;
visibility: hidden;   
}


#load-older-button:hover {
    background-color: #f0f9fe;
}


#load-older-button:active {
    background-color: #e0f3fc;
}
.char-counter {
    position: absolute;
    right: 4%;
    bottom: 15%;
    font-size: 50%;
    font-style: italic;
    text-align: right;
    padding: 2px 5px;
}

.input-group {
    position: relative;
    flex-grow: 1;
}


.char-counter.over-limit {
    color: #F35890;
    font-weight: bold;
}


#send-button {
    width: 40px;
    height: 22px;
    background-color: #efddf5;
    color: #d58bd9;
    border: 1px solid #d58bd9;
    border-radius: 10px;
    text-align: center;

    font-size: 12px;
    margin-left: -3px;
    outline: none;
}

#send-button:hover {
    background-color: #f6ebfa;
}

#send-text {
    display: flex;
    align-items: center;
    align-content: center;
    flex-direction: column;
    justify-content: center;
}


#emoji-button {
    width: 40px;
    height: 22px;
    background-color: #d4f3fb;
    color: #d58bd9;
    border: 1px solid #64c1f1;
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    margin-left: -3px;
}

#emoji-content {
    display: flex;
    align-items: center;
    align-content: center;
    flex-direction: column;
    justify-content: center;
}

.input-group {
    position: relative;
}

.emoji-picker {
	display: none;
	position: absolute;
	background: white;
	padding: 10px;
	overflow-y: auto;
	z-index: 1000;
	right: 40px;
	grid-template-columns: repeat(4, 1fr);
	height: 35%;
	width: 25%;
	transform: translate(20%, 100%);
	border-radius: 10px;
	border: 3px solid black;
	background: #141414;
	gap: 5px;
}

.emoji-picker.active {
    display: grid;
}

.emoji {
    transition: transform 0.2s;
    outline: none;
    border: none;
    background: transparent;
	color: white;
}

.emoji img {
    width: 20px;
    height: 20px;
    outline: none;
    border: none;
}

.emoticon {
    width: auto;
    height: 1.9em;
    vertical-align: middle;
}

#emoji-button:hover {
    background-color: #e1f7fc;
}


.copy-box {
  display: flex;
  align-items: center;
  width: 500px;
  height: 50px;
  gap: 6px;
  margin: auto;
  background: #fff0fa;
  border: 1px dashed #f99ecc;
  padding: 10px;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-y: auto;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}
.copy-box::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.copy-box pre {
  display: flex;
  width: 500px;
  height: 50px;
  gap: 6px;
  margin: auto;
  flex-grow: 1;
  font-size: 13px;
  padding: 10px;
  color: #d58bd9;
  background: transparent;
  white-space: pre-wrap;
    overflow-x: auto;
   overflow-y: auto;
   scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.copy-box pre::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.copy-box textarea {
  flex-grow: 1;
  background: transparent;
  border: none;
  resize: none;
  color: #d58bd9;
  font-size: 14px;
  padding: 5px;
  outline: none;
  cursor: text;
  overflow-x: auto;
   overflow-y: auto;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}

.copy-box textarea::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.copy-box button {
  background-color: #f99ecc;
  border: none;
  border-radius: 8px;
  color: white;
  padding: 6px 12px;
  font-size: 14px;
  cursor: url("/images/linkselect.gif"), auto;
  position: relative;
}

.copy-box button:hover {
  background-color: #ffb3d9;
}
